package com.cn.wanxi.dao;

import com.cn.wanxi.model.UserModel;

import java.util.List;

public interface UserDao {
    int register(UserModel userModel);

    UserModel findByUsername(String username);

    UserModel findByUsernameAndPassword(UserModel userModel);

    List<UserModel> findAll(UserModel userModel);

    int del(Integer id);

    UserModel findById(Integer id);

    int edit(UserModel userModel);

    UserModel findByUsernameForEdit(UserModel userModel);

    int getCount(UserModel userModel);
}
